// pages/myOrder/myOrder.js
var call = require("../../utils/request.js");
var app = getApp();
Page({
  data: {
    allOrder:{}
  },
  onLoad: function (options) {
    call.request('bill/getBillByUserId', {
      userid: app.globalData.userId,
      page:1,
      size:2,
    }, this.getBillBy, "");
  },
  getBillBy(data) {
    console.log(data);
    var that = this;
    that.setData({
      allOrder:data.data,
    })
  },
})